/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const nestedRouter = {
  path: '/audit',
  component: Layout,
  redirect: '/audit',
  name: 'Nested',
  meta: {
    title: '审核管理',
    icon: 'edit'
  },
  children: [
    {
      path: 'owner',
      component: () => import('@/views/audit/owner'),
      meta: {
        title: '货主审核'
      }
    },

    {
      path: 'driver',
      component: () => import('@/views/audit/driver/driver'),
      meta: {
        title: '司机审核'
      },
      children: [{
        path: 'id',
        component: () => import('@/views/audit/driver/id'),
        meta: {
          title: '实名认证'
        }
      }, {
        path: 'licence',
        component: () => import('@/views/audit/driver/licence'),
        meta: {
          title: '驾驶证行驶证认证'
        }
      }, {
        path: 'job',
        component: () => import('@/views/audit/driver/job'),
        meta: {
          title: '从业资格证认证'
        }
      }, {
        path: 'company',
        component: () => import('@/views/audit/driver/company'),
        meta: {
          title: '挂靠公司认证'
        }
      }, {
        path: 'vehicle',
        component: () => import('@/views/audit/driver/vehicle'),
        meta: {
          title: '车型号认证'
        }
      }, {
        path: 'vehicleNo',
        component: () => import('@/views/audit/driver/vehicleNo'),
        meta: {
          title: '车牌号认证'
        }
      }
      ]
    },
    // {
    //   path: 'car',
    //   component: () => import('@/views/audit/car'),
    //   meta: {
    //     title: '车辆审核'
    //   }
    // },
    {
      path: 'finance',
      component: () => import('@/views/audit/finance'),
      meta: {
        title: '财务审核'
      }
    }
  ]
}

export default nestedRouter
